package com.yd.domain.sys;


import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

public class OrderIdUtil {
	public static String  getOrderId() {
		String id=UUID.randomUUID().toString();
		Date date=new Date();
		SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmSS");
		String orderId=id.substring(0,2)+"-"+sdf.format(date);
		return  orderId;
	}
	public static void main(String[]args){
		System.out.println(getOrderId());
	}
}